package com.bruce.starts.demo.commonerror.dao;

import com.bruce.starts.demo.commonerror.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author luotuan
 * @Description
 * @create 2021-05-11 15:01
 **/
@Repository
public interface UserRepository extends JpaRepository<UserEntity,Long> {
    List<UserEntity> findByName(String name);
}
